import 'package:json_annotation/json_annotation.dart';

part 'commodity_ranking_page_data.g.dart';

@JsonSerializable()
class CommodityRankingPageData extends Object {

  int total;

  int totalPage;

  List<CommodityRanking> items;

  CommodityRankingPageData(this.total,this.totalPage,this.items,);

  factory CommodityRankingPageData.fromJson(Map<String, dynamic> srcJson) => _$CommodityRankingPageDataFromJson(srcJson);

  Map<String, dynamic> toJson() => _$CommodityRankingPageDataToJson(this);

}


@JsonSerializable()
class CommodityRanking extends Object {

  String name;

  int cellNum;

  int totalFee;

  CommodityRanking(this.name,this.cellNum,this.totalFee,);

  factory CommodityRanking.fromJson(Map<String, dynamic> srcJson) => _$CommodityRankingFromJson(srcJson);

  Map<String, dynamic> toJson() => _$CommodityRankingToJson(this);

}


